import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:lib_uikit/widgets/gt_button_v3.dart';

enum GTDialogButtonStyle {
  confirm,
  cancel,
}

class GTDialogButton extends StatelessWidget {
  const GTDialogButton({
    super.key,
    required this.onPressed,
    required this.text,
    required this.style,
    this.iconData,
  });

  final GTDialogButtonStyle style;

  final VoidCallback onPressed;

  final IconData? iconData;

  final String text;

  @override
  Widget build(BuildContext context) {
    return GTButtonV3(
      text: text,
      onPressed: onPressed,
      buttonType: style == GTDialogButtonStyle.confirm ? GTButtonTypeV3.primary : GTButtonTypeV3.secondary,
      buttonSize: GTButtonSizeV3.medium,
    );
  }
}
